/*
package com.core.shiro;

import java.util.LinkedHashMap;

//设置权限
public class FilterChainDefinitionMap {
    //获取所有触角
    //根据角色权限
    //组装map
    public LinkedHashMap<String, String> buildFilterChainDefinitionMap(){
        LinkedHashMap<String, String> map = new LinkedHashMap<>();
        map.put("/login.jsp", "anon");
        map.put("/shiro/login", "anon");
        map.put("/shiro/logout", "logout");
        map.put("/user.jsp", "authc,roles[user]");
        map.put("/admin.jsp", "authc,roles[admin]");
        map.put("getPage/user", "user");
        map.put("*/
/**", "authc");
        return map;
    }
}
*/
